﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TransactionDetails.aspx.cs" Inherits="TreaShares.Backoffice.User.TransactionDetails" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="403px" 
            AutoGenerateRows="False" DataSourceID="ObjectDataSource1">
            <Fields>
                <asp:BoundField DataField="Id" HeaderText="Id" SortExpression="Id" />
                <asp:BoundField DataField="TransactionType" HeaderText="Transaction Type" 
                    SortExpression="TransactionType" />
                <asp:BoundField DataField="TransactionDate" HeaderText="Transaction Date" 
                    SortExpression="TransactionDate" DataFormatString="{0:d}" />
                <asp:BoundField DataField="Entity" HeaderText="Entity" 
                    SortExpression="Entity" />
                <asp:BoundField DataField="Counterparty" HeaderText="Counter party" 
                    SortExpression="Counterparty" />
                <asp:BoundField DataField="TransactionRef" HeaderText="Transaction Ref" 
                    SortExpression="TransactionRef" />
                <asp:BoundField DataField="BuySell" HeaderText="BuySell" 
                    SortExpression="BuySell" />
                <asp:BoundField DataField="ValueDate" HeaderText="ValueDate" 
                    SortExpression="ValueDate" DataFormatString="{0:d}" />
                <asp:BoundField DataField="VestingDate" HeaderText="VestingDate" 
                    SortExpression="VestingDate" DataFormatString="{0:d}" />
                <asp:BoundField DataField="ExerciseDate" HeaderText="ExerciseDate" 
                    SortExpression="ExerciseDate" DataFormatString="{0:d}" />
                <asp:BoundField DataField="Stock" HeaderText="Stock" SortExpression="Stock" />
                <asp:BoundField DataField="Quantity" HeaderText="Quantity" 
                    SortExpression="Quantity" />
                <asp:BoundField DataField="Price" HeaderText="Price" SortExpression="Price" DataFormatString="{0:###,###.####}" />
                <asp:BoundField DataField="Flat" HeaderText="Flat" SortExpression="Flat" DataFormatString="{0:###,###.####}" />
                <asp:BoundField DataField="PerShare" HeaderText="PerShare" 
                    SortExpression="PerShare" DataFormatString="{0:###,###.####}"/>
                <asp:BoundField DataField="TotalFees" HeaderText="TotalFees" 
                    SortExpression="TotalFees" DataFormatString="{0:###,###.####}" />
                <asp:BoundField DataField="TotalConsideration" HeaderText="TotalConsideration" 
                    SortExpression="TotalConsideration" DataFormatString="{0:###,###.####}"/>
                <asp:BoundField DataField="Premium" HeaderText="Premium" 
                    SortExpression="Premium" />
                <asp:BoundField DataField="ExerciseType" HeaderText="ExerciseType" 
                    SortExpression="ExerciseType" />
                <asp:BoundField DataField="DateCreated" HeaderText="DateCreated" 
                    SortExpression="DateCreated" DataFormatString="{0:d}" />
            </Fields>
        </asp:DetailsView>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            OldValuesParameterFormatString="original_{0}" SelectMethod="GetTransaction" 
            TypeName="TreaShares.Backoffice.Controlers.TransactionManager">
            <SelectParameters>
                <asp:QueryStringParameter Name="transactionId" QueryStringField="TranId" 
                    Type="Int32" />
            </SelectParameters>
        </asp:ObjectDataSource>
    </div>
    </form>
</body>
</html>
